package cn.b.sky.mes.cm.model;

import java.util.ArrayList;
import java.util.List;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

/**
 * 工作日类型
 * @author zhaoxin01
 * @version 1.0 
 * history 
 * Symbol Date  Person  Note
 * [1]  2016/01/08 zhaoxin01  Generated.
 */
public class WorkDayType extends ImeCommon {

  /**
   * 工厂编号:nvarchar2(20) <Primary Key>
   */
  private String siteCode;

  /**
   * 日类型编号:nvarchar2(20) <Primary Key>
   */
  private String dayTypeCode;

  /**
   * 日类型描述:nvarchar2(60)
   */
  private String dayTypeText;

  /**
   * 显示颜色:nvarchar2(10)
   */
  private String displayColor;

  /**
   * 锁定标志:number(1)
   */
  private Integer lockFlag = 0;

  List<WorkDayPeriod> periods = new ArrayList<WorkDayPeriod>();

  public List<WorkDayPeriod> getPeriods() {
    return periods;
  }

  public void setPeriods(List<WorkDayPeriod> periods) {
    this.periods = periods;
  }

  @Override
  public String getSiteCode() {
    return siteCode;
  }

  @Override
  public void setSiteCode(String siteCode) {
    this.siteCode = siteCode;
  }

  public String getDayTypeCode() {
    return StringUtils.upperCase(dayTypeCode);
  }

  public void setDayTypeCode(String dayTypeCode) {
    this.dayTypeCode = StringUtils.upperCase(dayTypeCode);
  }

  public String getDayTypeText() {
    return dayTypeText;
  }

  public void setDayTypeText(String dayTypeText) {
    this.dayTypeText = dayTypeText;
  }

  public String getDisplayColor() {
    return displayColor;
  }

  public void setDisplayColor(String displayColor) {
    this.displayColor = displayColor;
  }

  public Integer getLockFlag() {
    return lockFlag;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }

}
